package cn.itcast.bos.web.action.base;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Actions;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;

@ParentPackage("struts-default")
@Namespace("/")
@Controller
@Actions
@Scope("prototype")
public class TestAction extends ActionSupport {

    private String name;

    public void setName(String name) {
        this.name = name;
    }

    @Action(value = "test")
    public void Test() {
        System.out.println("678" + "name");

    }
}
